package cn.gene.timeyan.ums.webapi.ums.controller;

import cn.gene.timeyan.common.restful.JsonResult;
import cn.gene.timeyan.pojo.ums.dto.SignInDTO;
import cn.gene.timeyan.pojo.ums.dto.VIPDTO;
import cn.gene.timeyan.ums.service.ISignInService;
import cn.gene.timeyan.ums.service.IVIPService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * VIP    前端控制器*
 *
 * @author LWG
 * @date 2022/7/23 10:52
 * @since 1.0.0@gene.cn
 */
@Slf4j
@RestController
@RequestMapping("/ums/vip")
@Api(tags="vip用户模块")
public class VIPController {
    /**
     * cyn
     */
    @Autowired
    private IVIPService vipService;

    /**
     *
     */
    @ApiOperation("新增vip用户功能")
    @PostMapping("/add-newVIP")
    public JsonResult<Void> addNew(@Validated VIPDTO vipdto){
        log.info("vipdto====:{}",vipdto);
        vipService.addNewVIP(vipdto);
        return JsonResult.ok();
    }
}
